package com.aoxiang.earlywaringapi.untils;

import com.aoxiang.earlywaringapi.bo.PageCounterBO;

/**
 * @author teevil@126.com
 * @date 2021/6/28
 */
public class CommonUntils {
    public static PageCounterBO convertToPageParameter(Integer start, Integer count) {
        Integer pageNum = start / count;
        return PageCounterBO.builder()
                .page(pageNum)
                .count(count)
                .build();
    }
}
